`ifndef TRANSACTION_SVH
`define TRANSACTION_SVH

class config_info;
	bit odd_parity;

	function new(input bit [3:0] a = 0);
		odd_parity = ^a;
	endfunction
endclass

class transaction;
	bit [3:0] a;
	config_info cfg_info;

	function new(input bit [3:0] a = 0);
		this.a = a;
		cfg_info = new(a);
	endfunction

	function void print(string name = "");
		$display("%s: %p, a=%0h", name, cfg_info, a);
	endfunction
endclass

`endif
